package www.qiyue.Freemarker;

import java.io.File;
import java.io.FileWriter;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
import freemarker.template.Configuration;
import freemarker.template.Template;
import org.springframework.ui.ModelMap;
import org.springframework.util.ResourceUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class TestFreemarker {

    @RequestMapping("marker")
    public  String freemarker(ModelMap modelMap) {
        int a = 0;
        modelMap.addAttribute("msg", "Hello dalaoyang , this is freemarker");
        return "stmb.ftl";
    }

}
